home *** CD-ROM | disk | FTP | other *** search
- Path: venere.inet.it!usenet
- From: gbrunori@sb1.shiny.it (Gabriele Brunori)
- Newsgroups: comp.lang.c++
- Subject: How can I use ODBC.DLL ?
- Date: Sat, 13 Jan 1996 21:42:10 GMT
- Organization: I.Net S.p.A.
- Message-ID: <4d9952$32ic@venere.inet.it>
- Reply-To: gbrunori@sb1.shiny.it
- NNTP-Posting-Host: 194.20.237.138
- X-Newsreader: Forte Free Agent 1.0.82
-
- I have tried to create a new database using ODBC driver with my C application, but
- the linker return to me this errors:
-
- Linker error: Undefined symbol _SQLAllocEnv in module ...
- Linker error: Undefined symbol _SQLExecDirect in module ...
- ...
-
- I have loaded the ODBC exported functions in this way:
-
- extern SQLAllocEnv(LONG hEnv);
- extern SQLAllocStmt(LONG hEnv, LONG hStmt);
- ....
- {
- LONG hEnv,hStmt;
- int LSqlStmt;
- HINSTANCE hODBC = LoadLibrary("C:\WINDOWS\SYSTEM\ODBC.DLL"); // I have BC 3.1
- if ( SQLAllocEnv(hEnv) == 0 )
- {
- SQLAllocStmt(hEnv, hStmt);
- ....
- }
-
- Is There anybody that can correct my source ?
- Thanks in advance.
- Gabriele.
-
-
-